package vsqlbuilder.gui;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JTextPane;

//TODO [high]: Fix show very large Queries.

public class TabQuery extends JTextPane {
	static final long serialVersionUID = 0L; // TODO [low]: temporary
												// fix,should be change to
												// correct one
	private static final Color LightBlue=new Color(190,222,224);
	private static final Font FONTnormal = new Font("Dialog", Font.BOLD, 15);
	
	public TabQuery() {
		super();
		this.setBackground(LightBlue);
		this.setFont(FONTnormal);
		this.setEditable(false);
	}
	
	public void setGeneratedSQL(String value) {
		this.setPreferredSize(this.getSize());
		this.setText("\n"+value);
	}
}
